package com.patterns.decorator;

/**
 * @Author Tanyu
 * @Date 2020/6/2 11:01
 * @Description 具体的装饰角色
 * @Version 1.0
 */
public class AIcar extends SuperCar {

  public AIcar(Icar car) {
    super(car);
  }

  public void autoMove() {
    System.out.println("自动");
  }

  @Override
  public void move() {
    super.move();
    autoMove();
  }
}
